@echo off
title Deploying Sentinel Dashboard...
echo Deploying Sentinel Dashboard...

cd .\nimbus-visual\nimbus-sentinel
echo.
echo Image Build..............
docker build -t regwmsuat.azurecr.io/nimbus/sentinel:latest .

echo.
echo Image Push..............
docker push regwmsuat.azurecr.io/nimbus/sentinel:latest

echo.
echo K8s Deploy..............
kubectl apply -f ..\..\k8s\test\sentinel\manifest.yml
kubectl rollout restart deployment nimbus-sentinel -n nimbus
timeout /nobreak /t 5

echo.
echo Delete Image..............
docker rmi regwmsuat.azurecr.io/nimbus/sentinel:latest
